const BaseModel = require('./base_model.js');

class FosterRoomModel extends BaseModel {}

FosterRoomModel.CL = "ax_foster_rooms";

FosterRoomModel.DB_STRUCTURE = {
  _pid: 'string|true',
  _id: 'string|true|comment=房间ID',
  roomId: 'string|true|comment=房间编号',
  roomName: 'string|true|comment=房间名称',
  roomType: 'string|true|comment=房间类型: single-单间, double-双间, suite-套房',
  size: 'string|false|comment=房间尺寸',
  capacity: 'int|true|default=1|comment=可容纳宠物数量',
  price: 'int|true|comment=价格(分/只/天)',
  unit: 'string|false|default=只/天/不含粮|comment=价格单位',
  description: 'string|false|comment=房间描述',
  images: 'array|false|comment=房间图片列表',
  amenities: 'array|false|comment=房间设施列表',
  careInstructions: 'string|false|comment=护理说明',
  
  // 关联信息
  storeId: 'string|true|comment=所属门店ID',
  
  // 状态管理
  status: 'int|true|default=1|comment=状态: 1-可用, 0-维护中',
  isOccupied: 'bool|true|default=false|comment=是否被占用',
  currentPets: 'array|false|comment=当前寄养宠物ID列表',
  
  createTime: 'int|true|comment=创建时间',
  updateTime: 'int|true|comment=更新时间',
};

FosterRoomModel.ROOM_TYPE = {
  SINGLE: 'single',    // 单间
  DOUBLE: 'double',    // 双间
  SUITE: 'suite'       // 套房
};

FosterRoomModel.STATUS = {
  MAINTENANCE: 0,  // 维护中
  AVAILABLE: 1     // 可用
};

module.exports = FosterRoomModel;